<?= $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?=Zend_Registry::get('cnf')->domen." - панель управления" ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-Equiv="Expires" Content="0">
<?php echo $this->jQuery(); ?>
<?php
   Zen_Style::add('/cms/res/admin/css/reset.css',-10);
   Zen_Style::add('/cms/res/twitter_bootstrap/css/bootstrap.css',-10);
   Zen_Style::add('/cms/res/twitter_bootstrap/css/bootstrap-responsive.css',-10);
   Zen_Style::add('/cms/res/admin/css/forms.css',-10);
   //Zen_Style::add('/cms/res/admin/css/icons.css',-10);
   Zen_Style::add('/cms/res/admin/css/common.css',40);
   Zen_Style::add('/cms/res/admin/css/ie.css',20,0,true);
   
   Zen_Script::add('/cms/res/jquery_treeview/lib/jquery.cookie.js',-10);
   Zen_Script::add('/cms/res/jquery_treeview/jquery.treeview.js',-10);
   Zen_Style::add('/cms/res/jquery_treeview/jquery.treeview.css',-10);
   
   Zen_Script::add('/cms/res/admin/js/common.js',40);
   Zen_Script::add('/cms/res/admin/js/preview.js',40);
   
   echo Zen_Style::render();
   echo Zen_Script::render();
?>
</head>
<body>

	<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <?php $cnf=Zend_Registry::get('cnf');?>
          <a class="brand" href="#"><?=$cnf->sitename?></a>
          <div class='clearfix' style='float: left; padding-top: 10px; padding-left: 300px;'>
			<div style='float: left; color: #fff;'>Администрирование</div>
			<a href='/' class='clearfix' style='display: block; float: left; margin: 0 5px; background:url(/cms/res/admin/img/trigger.png) no-repeat center center; height: 17px; width: 55px;'>
				<span style='display: block; float: left; background:url(/cms/res/admin/img/trigger-bar.png) no-repeat center center; height: 20px; width: 20px;'></span>
			</a>
			<div style='float: left; color: #aaa;'><a style='color: #999;' href='/'>Просмотр сайта</a></div>
          </div>
          <div class="nav-collapse" style="float:right;">
            <ul class="nav">
              <li><a href="/profile" ><i class='icon-user icon-grey '></i>&nbsp;<?$user=Zen_User::getCurrent(); echo $user->name ?></a></li>
              <li><a href="/logout/"><i class='icon-share-alt icon-grey '></i>&nbsp;Выход</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

	<div class="container-fluid">
	    <div class="row-fluid">
		    <div class="span2" style='margin-top: 6px; '>
		    	<div>
		    	<img alt="" src="/site/themes/default/img/logo.png" />
		    	</div>
		    	<br/>
		    	<?php if ($cnf->menuid):?>
		    	<div id="custom_menu" >
		    		<?=$this->action('index','index','menu', array('id'=>$cnf->menuid))?>
		    	</div>
		    	<br/>
		    	<br/>
		    	<?php endif;?>
		    	<div id="admin_menu" >
    				<div ><?php echo $this->action('menu','index','admin')?></div>
    			</div>
		    </div>
		    <div class="span10">
		    	<?=$this->layout()->content;?>
		    </div>
	    </div>
    </div>

</body>

</html>